<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>外部页面通用头部</title>
    <!-- 基本框架 -->
    <link rel="stylesheet" href="../../../css/common.css">
    <script src="../../../script/vue.min.js" type="text/javascript"></script>
    <script src="../../../script/frame.js" type="text/javascript"></script>
    <script src="../../../script/baseConfig.js" type="text/javascript"></script>
    <script src="../../../script/utils.js" type="text/javascript"></script>
    <script src="../../../script/common.js" type="text/javascript"></script>
    <style>
      body{background:#FFF;}
      #header{
          border-bottom:1px solid #F9F9F9;
      }
    </style>
</head>
<body>
    <div id="app" v-cloak>
        <div id="header">
            <div class="public-title">
                <div class="back" @click="back();"><img src="../../../image/icons/left.png" />{{param.backText==false?'':'返回'}}</div>
                <div class="h3" v-text="param.title || ''"></div>
                <div class="right"></div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        apiready = function() {
            var browser = api.require('webBrowser');
            var app = new Vue({
                el:'#app',
                data:{
					iosTest:false,
                    param:api.pageParam.data,
                },
                methods:{
					back(){
						browser.historyBack(
						    function(ret, err) {
						        if (!ret.status) {
						            api.closeWin();
						        }
						    }
						);
					}
                },
                mounted(){
					$.initJs(this);

                }
            });

            browser.openView({
                url: api.pageParam.page,
                rect:$.rect(),
                progress:{
                    height:2,
                }
            });
        }
    </script>
</body>
</html>
